package com.durian.system.api;

import com.durian.common.core.constant.ServiceNameConstants;
import com.durian.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author zhouzhiyi
 * @Date 2022/6/25 9:10
 * @Description 字典数据服务
 */
@FeignClient(contextId = "remoteDictDataService", value = ServiceNameConstants.SYSTEM_SERVICE,path = "/dict/data")
public interface RemoteDictDataService {

    /**
     * 根据字典类型查询字典数据信息
     */
    @GetMapping(value = "/type/{dictType}")
    public AjaxResult dictType(@PathVariable(value = "dictType") String dictType);
}
